package com.txts.road.app.event.controller;

import com.txts.road.app.event.model.vo.EventNewsVO;
import com.txts.road.app.event.service.PartnerService;
import com.txts.base.common.domain.ResponseDTO;
import io.swagger.v3.oas.annotations.Operation;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import io.swagger.v3.oas.annotations.tags.Tag;

import java.util.List;


/**
 * 合作伙伴前端控制层
 *
 * @author baoyr
 * @since 2025-07-17 10:44
 */
@Tag(name = "合作伙伴接口")
@RestController
@RequestMapping("/api/v1/partner")
@RequiredArgsConstructor
public class PartnerController {
    private final PartnerService partnerService;

    /**
     * 获取合作伙伴列表
     *
     * @return 合作伙伴列表
     */
    @Operation(summary = "获取合作伙伴列表")
    @GetMapping("/partners")
    public ResponseDTO<List<EventNewsVO>> getPartnerList() {
        return ResponseDTO.ok(partnerService.getPartnerList());
    }


}
